package org.example.controller;

import org.example.service.IPhoneBrandService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/phone-brand")
public class PhoneBrandController {
    @Resource
    private IPhoneBrandService phoneBrandService;
    @GetMapping
    public Result get(){
        return Result.buildSuccess(phoneBrandService.getAll());
    }
}
